package net.osweb.crm.modules.core.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Recent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "core_recent")
public class Recent implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8313156184075488089L;
	private Integer id;
	private Integer userid;
	private String nametitle;
	private String types;
	private Integer typesid;
	private String url;
	private Timestamp createtime;
	private String comment;

	// Constructors

	/** default constructor */
	public Recent() {
	}

	/** full constructor */
	public Recent(Integer userid, String nametitle, String types,
			Integer typesid, String url, Timestamp createtime, String comment) {
		this.userid = userid;
		this.nametitle = nametitle;
		this.types = types;
		this.typesid = typesid;
		this.url = url;
		this.createtime = createtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "nametitle")
	public String getNametitle() {
		return this.nametitle;
	}

	public void setNametitle(String nametitle) {
		this.nametitle = nametitle;
	}

	@Column(name = "types")
	public String getTypes() {
		return this.types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	@Column(name = "typesid")
	public Integer getTypesid() {
		return this.typesid;
	}

	public void setTypesid(Integer typesid) {
		this.typesid = typesid;
	}

	@Column(name = "url")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}